/* ============================================
   HOMEPAGE STYLES - دبیرستان پلیس
   ============================================ */

/* Vazir - فونت اصلی */
@font-face {
    font-family: 'Vazir';
    src: url('/public/assets/fonts/Vazir.woff2') format('woff2'),
         url('/public/assets/fonts/Vazir.woff') format('woff'),
         url('/public/assets/fonts/Vazir.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Shabnam - فونت دوم (برای قرآن) */
@font-face {
    font-family: 'Shabnam';
    src: url('/public/assets/fonts/Shabnam.woff2') format('woff2'),
         url('/public/assets/fonts/Shabnam.woff') format('woff'),
         url('/public/assets/fonts/Shabnam.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --cream: #fffbeb;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb, #1d4ed8);
    --gradient-secondary: linear-gradient(135deg, #f59e0b, #d97706);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazir', system-ui, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

/* اسکرول بار اختصاصی */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* اسکلت لودر */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 16px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============================================
    BUTTONS - بهبودیافته با افکت
    ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: none;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.45);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(245,158,11,0.35);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.45);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}
.btn-full { width: 100%; }

/* ============================================
    TOP BAR - بهبودیافته
    ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    position: relative;
    overflow: hidden;
}
.top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.top-bar-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.top-bar-info a {
    color: white;
    transition: color 0.3s;
}
.top-bar-info a:hover { color: var(--secondary); }
.top-bar-btn {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.top-bar-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
@media (max-width: 640px) {
    .top-bar-info .hidden-mobile { display: none; }
}

/* ============================================
    HEADER - شیشه‌ای حرفه‌ای
    ============================================ */
.main-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    padding: 0.25rem 0;
    background: rgba(255,255,255,0.95);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
@media (min-width: 1024px) { .nav-container { height: 90px; } }
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}
.logo:hover .logo-icon { transform: rotate(8deg) scale(1.05); }
.logo-text h1 { font-size: 1.125rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
.logo-text p { font-size: 0.7rem; color: var(--gray); }
@media (min-width: 640px) {
    .logo-icon { width: 52px; height: 52px; font-size: 1.75rem; }
    .logo-text h1 { font-size: 1.25rem; }
}
.desktop-nav { display: none; }
@media (min-width: 1024px) { .desktop-nav { display: flex; align-items: center; gap: 2rem; } }
.nav-link {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, var(--primary), var(--secondary));
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary); }
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.dropdown a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--dark);
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.875rem;
    font-weight: 500;
}
.dropdown a:hover {
    background: #f8fafc;
    color: var(--primary);
    padding-right: 1.75rem;
}
.mobile-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}
.mobile-toggle:hover { background: var(--primary); color: white; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.header-actions { display: none; }
@media (min-width: 640px) { .header-actions { display: flex; gap: 0.75rem; } }

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: white;
    z-index: 201;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--gradient-primary);
    color: white;
}
.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    font-size: 1.25rem;
}
.mobile-nav { padding: 1.25rem; }
.mobile-nav > a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--dark);
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-right: 3px solid transparent;
}
.mobile-nav > a:hover {
    background: #f8fafc;
    color: var(--primary);
    border-right-color: var(--primary);
}
.mobile-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.mobile-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
}
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
    background: #f8fafc;
}
.mobile-accordion-content.active { max-height: 300px; }
.mobile-accordion-content a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--gray);
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
}

/* ============================================
    HERO SECTION - بهبودیافته با تایپ‌رایتر
    ============================================ */
.hero {
    min-height: calc(100vh - 130px);
    background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 50%, #fce7f3 100%);
    position: relative;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37,99,235,0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(245,158,11,0.1) 0%, transparent 50%);
}
.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    border: 1px solid rgba(37,99,235,0.15);
}

/* تایپ‌رایتر */
.typewriter {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark);
    min-height: 5rem;
}
.typewriter .cursor {
    display: inline-block;
    width: 3px;
    background: var(--primary);
    animation: blink 0.7s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (min-width: 640px) { .typewriter { font-size: 2.5rem; } }
@media (min-width: 1024px) { .typewriter { font-size: 3.2rem; } }

.hero-text {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
}
@media (min-width: 640px) { .hero-text { font-size: 1.1rem; } }

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 480px) { .hero-buttons { flex-direction: row; } }

/* Hero Image */
.hero-image-wrapper { display: none; }
@media (min-width: 1024px) { .hero-image-wrapper { display: block; position: relative; } }
.hero-image {
    position: relative;
    background: white;
    padding: 1rem;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s;
}
.hero-image:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 24px;
}

/* کارت‌های شیشه‌ای بهبودیافته */
.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(16px);
    padding: 0.7rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.5);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.floating-card-1 { bottom: 20px; right: -15px; animation-delay: 0s; }
.floating-card-2 { top: 20px; left: -15px; animation-delay: 3s; }
.floating-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
.bg-green-light { background: rgba(167,243,208,0.5); color: #047857; }
.bg-blue-light { background: rgba(191,219,254,0.5); color: #1d4ed8; }
.floating-card p:first-of-type {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}
.floating-card p:last-of-type {
    font-size: 0.65rem;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

/* ریسپانسیو کارت‌های شیشه‌ای */
@media (max-width: 1024px) {
    .floating-card {
        position: static;
        animation: none;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
    }
    .hero-image {
        display: flex;
        flex-direction: column;
    }
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    animation: pulse 8s infinite;
}
.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    top: -100px;
    right: -100px;
}
.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary), #fbbf24);
    bottom: -50px;
    left: -50px;
    animation-delay: 4s;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* ============================================
    SECTION TITLE
    ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (min-width: 640px) { .section-title h2 { font-size: 2.2rem; } }
@media (min-width: 1024px) { .section-title h2 { font-size: 2.5rem; } }
.section-title .line {
    width: 70px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 9999px;
}
.section-title p {
    color: var(--gray);
    margin-top: 1rem;
    font-size: 0.9375rem;
}

/* ============================================
    STATISTICS SECTION - بهبودیافته
    ============================================ */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.stat-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2,0.9,0.4,1.1);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.stat-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 1rem;
    background: rgba(37,99,235,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
@media (min-width: 640px) { .stat-number { font-size: 2.2rem; } }
.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 0.25rem;
}
.stat-desc {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ============================================
    QURAN SECTION - بهبودیافته با parallax
    ============================================ */
.quran-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a5f, #0f2027);
    position: relative;
    background-attachment: fixed;
    overflow: hidden;
}
.quran-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.quran-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 32px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.quran-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}
.quran-title {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.quran-text {
    font-family: 'Shabnam', sans-serif;
    font-size: 1.4rem;
    line-height: 2;
    color: white;
    margin-bottom: 1.5rem;
}
.quran-translation {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.quran-reference {
    color: var(--secondary);
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 640px) {
    .quran-card { padding: 1.5rem; }
    .quran-text { font-size: 1.1rem; }
}

/* ============================================
    SERVICES SECTION - بهبودیافته
    ============================================ */
.services {
    padding: 5rem 0;
    background: white;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2,0.9,0.4,1.1);
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 35px rgba(37,99,235,0.12);
}
.service-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.25rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.service-icon.blue { background: rgba(37,99,235,0.1); color: var(--primary); }
.service-icon.orange { background: rgba(245,158,11,0.1); color: var(--secondary); }
.service-icon.purple { background: rgba(147,51,234,0.1); color: #9333ea; }
.service-icon.green { background: rgba(16,185,129,0.1); color: var(--accent); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; font-weight: 700; }
.service-card p { color: var(--gray); font-size: 0.85rem; line-height: 1.7; margin-bottom: 1rem; }

/* ============================================
    GALLERY SECTION - بهبودیافته
    ============================================ */
.gallery {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
}
.gallery-title {
    text-align: center;
    color: white;
    margin-bottom: 2.5rem;
}
.gallery-title h2 { font-size: 1.8rem; font-weight: 800; }
@media (min-width: 640px) { .gallery-title h2 { font-size: 2.2rem; } }
.gallery-title p { color: rgba(255,255,255,0.9); margin-top: 0.5rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: white; font-weight: 700; transform: translateY(10px); transition: transform 0.3s; }
.gallery-item:hover .gallery-overlay p { transform: translateY(0); }
.gallery-overlay span { color: rgba(255,255,255,0.8); font-size: 0.7rem; transform: translateY(10px); transition: transform 0.3s 0.05s; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

/* ============================================
    WHY US SECTION
    ============================================ */
.why-us {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f9fafb, white);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border-right: 4px solid;
    transition: all 0.4s;
    box-shadow: var(--shadow-sm);
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.why-card:nth-child(1) { border-color: var(--primary); }
.why-card:nth-child(2) { border-color: var(--secondary); }
.why-card:nth-child(3) { border-color: var(--accent); }
.why-card:nth-child(4) { border-color: #9333ea; }
.why-card:nth-child(5) { border-color: #ef4444; }
.why-card:nth-child(6) { border-color: #ec4899; }
.why-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}
.why-card:nth-child(1) .why-icon { background: rgba(37,99,235,0.1); color: var(--primary); }
.why-card:nth-child(2) .why-icon { background: rgba(245,158,11,0.1); color: var(--secondary); }
.why-card:nth-child(3) .why-icon { background: rgba(16,185,129,0.1); color: var(--accent); }
.why-card:nth-child(4) .why-icon { background: rgba(147,51,234,0.1); color: #9333ea; }
.why-card:nth-child(5) .why-icon { background: rgba(239,68,68,0.1); color: #ef4444; }
.why-card:nth-child(6) .why-icon { background: rgba(236,72,153,0.1); color: #ec4899; }
.why-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; }
.why-card p { color: var(--gray); font-size: 0.85rem; line-height: 1.7; }

/* ============================================
    TESTIMONIALS SECTION
    ============================================ */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
}
.testimonials-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: white;
}
.testimonials-title h2 { font-size: 1.8rem; font-weight: 800; }
@media (min-width: 640px) { .testimonials-title h2 { font-size: 2.2rem; } }
.testimonials-title p { color: rgba(255,255,255,0.9); margin-top: 0.5rem; }
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
    background: white;
    padding: 1.8rem;
    border-radius: 24px;
    transition: all 0.4s;
    position: relative;
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.testimonial-stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-text {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}
.testimonial-info h4 { font-size: 0.95rem; font-weight: 700; }
.testimonial-info p { font-size: 0.75rem; color: var(--gray); }

/* ============================================
    CTA SECTION
    ============================================ */
.cta-section {
    padding: 4rem 0;
    margin: 2rem 0;
}
.cta-container {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 40px;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.cta-content {
    position: relative;
    z-index: 10;
}
.cta-content h2 {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
@media (min-width: 640px) { .cta-content h2 { font-size: 2rem; } }
.cta-content p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

/* ============================================
    FOOTER - بهبودیافته
    ============================================ */
.footer {
    background: linear-gradient(180deg, #0f172a, #1a1a2e);
    color: white;
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }
.footer-brand p { color: #94a3b8; font-size: 0.85rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-right: 0.75rem;
    border-right: 3px solid var(--primary);
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links a:hover { color: white; padding-right: 6px; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: #94a3b8;
    font-size: 0.85rem;
}
.footer-contact i { color: var(--primary); width: 20px; }
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { color: #64748b; font-size: 0.8rem; }
.social-links {
    display: flex;
    gap: 0.8rem;
}
.social-links a {
    width: 38px;
    height: 38px;
    background: #334155;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s;
}
.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

/* ============================================
    SCROLL TOP
    ============================================ */
.scroll-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    z-index: 99;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ============================================
    CHATBOT - بهبودیافته
    ============================================ */
.chatbot-button-farz {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #2563eb, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    transition: all 0.3s;
    z-index: 100;
    color: white;
    font-size: 1.5rem;
}
.chatbot-button-farz:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(37,99,235,0.5);
}
.chatbot-panel-farz {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    display: none !important;
    flex-direction: column;
    overflow: hidden;
    z-index: 101;
    direction: rtl;
}
.chatbot-panel-farz.active { display: flex !important; animation: fadeInUp 0.25s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot-header-farz {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-header-farz h3 { font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.chatbot-status {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.chatbot-close-farz {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}
.chatbot-close-farz:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }
.chatbot-messages-farz {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9fafb;
}
.message-bot-farz {
    display: flex;
    gap: 8px;
    max-width: 85%;
    align-self: flex-start;
}
.bot-avatar-farz {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bot-avatar-farz i { color: white; font-size: 12px; }
.bot-text-farz {
    background: white;
    padding: 8px 12px;
    border-radius: 16px;
    border-top-right-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #1f2937;
}
.message-user-farz {
    display: flex;
    gap: 8px;
    max-width: 85%;
    align-self: flex-end;
    flex-direction: row-reverse;
}
.user-avatar-farz {
    width: 30px;
    height: 30px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-avatar-farz i { color: white; font-size: 12px; }
.user-text-farz {
    background: #2563eb;
    padding: 8px 12px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 0.8rem;
    color: white;
}
.typing-farz {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border-radius: 16px;
    border-top-right-radius: 4px;
}
.typing-farz span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingAnim 1.2s infinite;
}
.typing-farz span:nth-child(1) { animation-delay: 0s; }
.typing-farz span:nth-child(2) { animation-delay: 0.15s; }
.typing-farz span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingAnim {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.chatbot-input-farz {
    padding: 10px 14px;
    background: white;
    border-top: 1px solid #eef2f6;
    display: flex;
    gap: 10px;
}
.chatbot-input-farz input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.8rem;
    background: #f9fafb;
}
.chatbot-input-farz input:focus {
    outline: none;
    border-color: #2563eb;
}
.chatbot-input-farz button {
    background: #2563eb;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}
.chatbot-input-farz button:hover { background: #1d4ed8; }
.quick-suggestions-farz {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: #f9fafb;
    border-top: 1px solid #eef2f6;
}
.suggestion-btn-farz {
    background: #f3f4f6;
    border: none;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    color: #4b5563;
    cursor: pointer;
    font-family: inherit;
}
.suggestion-btn-farz:hover { background: #e5e7eb; color: #2563eb; }
@media (max-width: 480px) {
    .chatbot-panel-farz { width: calc(100vw - 30px); right: 15px; height: 460px; bottom: 80px; }
    .chatbot-button-farz { width: 50px; height: 50px; font-size: 1.4rem; }
}
/* افتخارآفرینان - دو عکس با عرض محدود */
.honorees-section {
    padding: 60px 0;
    background: #f8fafc;
}

.honorees-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 40px;
}

.honoree-link {
    display: block;
    flex: 1;
    max-width: 400px;        /* ← حداکثر عرض هر عکس */
    min-width: 280px;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.honoree-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.honoree-image {
    width: 100%;
    background-color: #e2e8f0;
}

.honoree-image img {
    width: 100%;
    height: 450px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

.honoree-link:hover .honoree-image img {
    transform: scale(1.03);
}

/* موبایل */
@media (max-width: 768px) {
    .honorees-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .honoree-link {
        max-width: 100%;
        width: 100%;
    }
    
    .honoree-image img {
        height: 400px;
    }
}